<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>AddVehicleWheel</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">AddVehicleWheel()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#006666"><b>AddVehicleWheel</b></font>(#Entity, #WheelEntity, ConnectX.f, ConnectY.f, ConnectZ.f, AxisX.f, AxisY.f, AxisZ.f, MaxSuspensionLength.f, WheelRadius.f, TractionWheel, RollInfluence.f)</blockquote>

<b>概要</b><br><blockquote>



Add a new wheel to a vehicle previous created with <a href="createvehicle.html">CreateVehicle()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Entity</i></td>
<td width="90%"> 
 
The vehicle entity to use. 

 

</td></tr>
<tr><td><i>#WheelEntity</i></td>
<td> 
 
The entity to use for the wheel. 

 

</td></tr>
<tr><td><i>ConnectX, ConnectY, ConnectZ</i></td>
<td> 
 
The starting point of the ray, where the suspension connects to the chassis. 

 

</td></tr>
<tr><td><i>AxisX, AxisY, AxisZ</i></td>
<td> 
 
The axis the wheel rotates around. 

 

</td></tr>
<tr><td><i>MaxSuspensionLength</i></td>
<td> 
 
The maximum length of the suspension (in meters). 

 

</td></tr>
<tr><td><i>WheelRadius</i></td>
<td> 
 
Radius of the wheel. 

 

</td></tr>
<tr><td><i>TractionWheel</i></td>
<td> 
 
If sets to <font color="#924B72">#True</font>, this wheel will be a traction wheel: <a href="applyvehicleforce.html">ApplyVehicleForce()</a> and <a href="applyvehiclesteering.html">ApplyVehicleSteering()</a> can be 
used on it. If sets to <font color="#924B72">#False</font>, no force can be applied to the wheel. 

 

</td></tr>
<tr><td><i>RollInfluence</i></td>
<td> 
 
Reduces the rolling torque applied from the wheels that cause the vehicle to roll over. 
(0.0: no roll, 1.0: physical behaviour). If friction is too high, it could be needed to reduce 
this value to stop the vehicle rolling over. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>参阅</b></p><blockquote>
<a href="applyvehiclebrake.html">ApplyVehicleBrake()</a>, <a href="applyvehicleforce.html">ApplyVehicleForce()</a>, <a href="createvehicle.html">CreateVehicle()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center><a href=index.html>Vehicle Index</a> - <a href=applyvehiclebrake.html>ApplyVehicleBrake()</a> -&gt;<br><br>

</body></html>